package com.gxa.mapper;

import com.gxa.domain.entity.Coach;
import com.gxa.domain.vo.FindCoachByNameVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface CoachMapper {
    Coach queryById(int id);

    int updateCoach(Coach coach);


    int deleteCoachById(Integer id);

    int insertCoach(Coach coach);


    List<Coach> getCoachList();

    List<Coach> getCoachListByPage(@Param("start") int start, @Param("pageSize") int pageSize);

    Integer countCoachs();


    List<FindCoachByNameVO> findCoachByName(@Param("name") String title, @Param("offset") Integer offset, @Param("rows") Integer rows);

    Integer countCoachByCondition(@Param("name") String title);

//    Integer countCoachByCondition(@Param("title") String title) ;
     int updateSysUser(Coach coach);
}
